package com.fa.production.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ColumnWidth(16)
public class Processs {
    @ExcelIgnore
    private Integer routeId;
    @NotBlank(message = "工艺路线编号不能为空")
    @ExcelProperty(value = "工艺路线编号")
    private String routeCode;
    @NotBlank(message = "工艺路线名称不能为空")
    @ExcelProperty(value = "工艺路线名称")
    private String routeName;
    @ExcelProperty(value = "工艺路线说明")
    private String routeDesc;
    @NotNull(message = "是否启用不能为空")
    @ExcelProperty(value = "是否启用",converter = CharacterConverter.class)
    private Character enableFlag;
    @ExcelProperty(value = "备注")
    private String remark;

}
